package odgs;

import java.util.Date;


public class TotalGridNode {

	private GridNode	node;
	private String	ip;
	private Date	loginTime;

	public TotalGridNode(GridNode node)
	{
		this.node = node;
	}

	public void setIP(String ip)
	{
		this.ip = ip; 
	}

	public void setLoginTime(Date loginTime)
	{
		this.loginTime = loginTime;
	}

	public String getId()
	{
		return node.getId();
	}

	public boolean isLogin()
	{
		if(ip == null)
			return false;
		else 
			return true;
	}

	public long getUsedSize()
	{
		return node.getUsedSize();
	}

	public long getAllowedSize()
	{
		return node.getAllowedSize();
	}

	public Date getLoginTime()
	{
		return loginTime;
	}

	public String getIP()
	{
		if(ip == null)
			return "";
		else
			return ip;
	}
}
